struct afile;

struct afile	*af_open(const char *);
struct afile	*af_fdopen(int);
void		 af_close(struct afile *);
int		 af_get(struct afile *, const char *, ...);
int		 af_set(struct afile *, const char *, ...);
ssize_t		 af_read(struct afile *, void *, size_t);
struct timespec	 af_seek(struct afile *, struct timespec, int);
struct timespec	 af_length(struct afile *);
